package com.xj.common.bussiness.device.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mars
 * @since 2017-08-24
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("tb_device")
public class TbDevice extends Model<TbDevice> {

    private static final long serialVersionUID = 1L;

    
	/**
	 * 用户id
	 */
	private Integer id;
    /**
     * 串号
     */
	private String mac;
    /**
     * 设备名称
     */
    @TableField(value="device_name")
	private String deviceName;
    /**
     * 设备厂商
     */
    @TableField(value="device_firm")
	private String deviceFirm;
    /**
     * 设备型号
     */
	private String model;
    /**
     * 拥有人
     */
	private String owner;
    /**
     * 插入时间
     */
	@TableField(value="insert_time")
	private Date insertTime=new Date();


	
	
	
	
	



	@Override
	protected Serializable pkVal() {
		return this.mac;
	}

}
